/*
 * ----------------------------------------------------------------------------
 *  (C) Copyright European Telecommunications Standards Institute, 2001.
 *  All Rights Reserved.
 *
 *  All copies of this program, whether in whole or in part, and whether
 *  modified or not, must display this and all other embedded copyright
 *  and ownership notices in full.
 *
 * ----------------------------------------------------------------------------
 */
package org.etsi.ttcn.tri;

/** 
    A value of type TriStatusType is either TRI_OK or TRI_Error
    indicating the success or failure of a TRI operation.
 */
public interface TriStatus {
    /** Indicates local success of a TRI operation
     */
    public final static int TRI_OK      =  0;
    /** Indicates local failure of a TRI operation
     */
    public final static int TRI_ERROR   = -1;

    /** Returns the string representation of the status.
     */
    public String  toString();

    /** Returns the status of this TriStatus.
     */
    public int     getStatus();

    /** Sets the status of this TriStatus.
     */
    public void    setStatus(int status);

    /** Compares status with this TriStatus for equality. Returns true
	if and only if they have the same status, false otherwise.
    */
    public boolean equals(TriStatus status);
}
